isdecimal string method in Python